#ifndef __HAL_PWM_H__
#define __HAL_PWM_H__

#include "gbl_types.h"
#include "os_api.h"
/*===========================================================================

                          Type definition.

===========================================================================*/
typedef enum PWM_CYCLE_RANGE_ENUM
{
    PWM_CYCLE_ABOVE_1US,
	PWM_CYCLE_ABOVE_10US,	
    PWM_CYCLE_ABOVE_1MS
} PWM_CYCLE_RANGE_E;


/*===========================================================================

                          INTERNAL FUNCTION DECLARATIONS

===========================================================================*/

int hal_PwmConfig(UINT32 gpio_num,PWM_CYCLE_RANGE_E cycle_range,UINT32 high_time, UINT32 cycle_time);


int hal_PwmEnable(unsigned int gpio_num);


int hal_PwmDisable(unsigned int gpio_num);


#endif
